﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAO;
using DTO;
namespace BUS
{
    public class HoaDonBUS
    {
        HoaDonDAO hoadon = new HoaDonDAO(); 

        public DataTable LayTableTHeongay(DateTime form, DateTime to)
        {
            return hoadon.LayTableTHeongay(form, to);
        }
        
        public DataTable LayTable()
        {
            return hoadon.LayTable();
        }
        public DataTable LayTableTHeoKhacHang(int maKH)
        {
            return hoadon.LayTableTHeoKhacHang(maKH);
        }
        public void Xoa(HoaDonDTO hd)
        {
            hoadon.Xoa(hd);
        }
        public DataTable LayTableNguoc()
        {

            return hoadon.LayTableNguoc();
        }
        public void them(HoaDonDTO hd)
        {
            hoadon.them(hd);
        }
    }
}
